{include file="common/header2"}
<div class="findpass-header container-fluid">
			<div class="container findpass-header-con">
				<div class="logo-img">
					<img src="__CDN__/assets/img/index/logo.png">
				</div>
				<div class="header-title">
					<p>智识医学研究院</p>
					<p>www.zhishi.com</p>
				</div>
				<div class="header-desc">
					<p>用户认证</p>
				</div>
			</div>
			<div style="clear:both;"></div>
		</div>
		<div class="container renzheng ">
			<p class="renzheng-pic"><img src="__CDN__/assets/img/index/renzheng1.png"></p>
			<p class="renzheng-buzou"><span>填写信息</span><span>等待审核</span><span>认证成功</span></p>
			<div class="renzheng-inp clearfix">
				<form action="/index/user/approve.html" method="POST" enctype="multipart/form-data">
					<div class="renzheng-list">
						<div class="renzheng-list-left">
							<label>认证资料</label>
						</div>
						<div class="renzheng-list-right">
							<span>您的证件信息不会被其他网友看到，我们将严格保密，请放心填写</span>
						</div>
					</div>
					<div class="renzheng-list zm">
						<div class="renzheng-list-left">
							<label><span class="hongxing">*</span>身份证正面照</label>
						</div>
						<div class="renzheng-list-right">
							<label for="filez">上传图片</label>
							<span></span>
							<input type="file" name="card_just" id="filez" accept=".jpg,.jpeg,.gif,.png" onchange="showPreview(this)">
							<div class="renzheng-desc">
								<span>1. 请上传身份证正面带有头像的清晰照片</span>
								<span>2.照片要求格式为jpg/jpEG/giF/png，大小不要超过3M</span>
							</div>
						</div>
					</div>
					<div class="renzheng-list fm">
						<div class="renzheng-list-left">
							<label><span class="hongxing">*</span>身份证背面面照</label>
						</div>
						<div class="renzheng-list-right">
							<label for="filef" >上传图片</label>

							<span></span>
							<input type="file" name="card_against" class="bm" id="filef" accept=".jpg,.jpeg,.gif,.png" onchange="showPreview(this)">
							<div class="renzheng-desc">
								<span>1. 请上传身份证正面带有头像的清晰照片</span>
								<span>2.照片要求格式为jpg/jpEG/giF/png，大小不要超过3M</span>
							</div>
						</div>
					</div>
					<div class="renzheng-list zj">
						<div class="renzheng-list-left">
							<label><span class="hongxing">*</span>工作证件</label>
						</div>
						<div class="renzheng-list-right">
							<label for="filezj">上传图片</label>
							<span></span>
							<input type="file" name="work" id="filezj" accept=".jpg,.jpeg,.gif,.png" onchange="showPreview(this)">
							<div class="renzheng-desc">
								<span>1. 请上传您工卡、名片或单位盖章的在职证明</span>
								<span>2.照片要求格式为jpg/jpEG/giF/png，大小不要超过3M</span>
							</div>
						</div>
					</div>
					<div class="renzheng-list xieyi">
						<div class="renzheng-list-left" style="visibility: hidden;">
							<label><span class="hongxing">*</span>工作证件</label>
						</div>
						<div class="renzheng-list-right">
							<input type="checkbox" id="agree" style="display: none;">
							<label for="agree" class="agree"></label><span>我已同意<a href="/home/xieyi.html">《用户认证条约》</a></span>
						</div>
					</div>
					<div class="renzheng-list submit">
						<div class="renzheng-list-left" style="visibility: hidden;">
							<label><span class="hongxing">*</span>工作证件</label>
						</div>
						<div class="renzheng-list-right">
						  <p id="wrong" style="text-align: left;"></p>
							<input type="submit" class="agreebtn">
						</div>
					</div>
			</div>
			</form>

		</div>

		</div>

		<script>
			function showPreview(source) {
				var arrs = $(source).val().split('\\');

				var filename = arrs[arrs.length - 1];

				$(source).prev().html(filename);

				var file = source.files[0];

				var total = file.size;
				if(window.FileReader) {

					var fr = new FileReader();

					fr.onprogress = function(e) {
						$(".progress1").show();

						$("#Progress").val((e.loaded / total) * 100)
					};

					fr.onabort = function() {

						$(".progress1").html("文件上传中断,请重试")

					};

					fr.onerror = function() {

						$(".progress1").html("文件上传出错，请重试")

					};

					fr.onload = function() {
						$(".progress1").hide();

						$(".progress1").html("文件上传成功")

					};

					fr.readAsDataURL(file);

				}

			}

			//留言总判读
			$('.agreebtn').click(function() {
				var isChecked = $('#agree').is(":checked");
				if(!isChecked) {
					$('#wrong').show();
					$('#wrong').html('遵守用户认证条约,可以上传');
					return false;
				}else if($('#filez').val().length <= 0){
					$('#wrong').show();
					$('#wrong').html('所需资料都需要上传才可以提交');
					return false;
                    
				}else if($('#filef').val().length <= 0){
					$('#wrong').show();
					$('#wrong').html('所需资料都需要上传才可以提交');
					return false;
                   
			    }else if($('#filezj').val().length <= 0){
					$('#wrong').show();
					$('#wrong').html('所需资料都需要上传才可以提交');
					return false;
                    
			    }else{
					$('#wrong').hide();
					$('#wrong').html('');
			    	return true;
			    }

				
			})

// 判断上传证件是否有为空





		</script>
{include file="common/login"}
{include file="common/footer"}